#ifndef _FORMULA_H_
#define _FORMULA_H_
#include "MgrBase.h"
#include "SimpleRefection.h"
class Operator;
struct EventArgBase;
class CombatObj;

class Formula:public ReflectionBase
{
	DECL_REFLECTION(Formula,"../../config/Formula.xml");
public:
	int32			m_iID;
	std::string		m_sDisplayName;
	ECalBaselValueType m_eParam0;
	ECalBaselValueType m_eParam1;
	ECalBaselValueType m_eParam2;
	ECalBaselValueType m_eParam3;
	double		m_fValue0;
	double		m_fValue1;
	double		m_fValue2;
	double		m_fValue3;
	int32	m_iOperator;

	Operator * m_pOperator;
	
	rewrite virtual void OnArchieveReaded();

private:
};
typedef DefMangerTpl<Formula> FormulaManager;

#endif